
<template>
    <el-container>
        <el-breadcrumb separator="/">
            <el-breadcrumb-item to="/">Home</el-breadcrumb-item>
            <el-breadcrumb-item >{{ curLabel }}</el-breadcrumb-item>
        </el-breadcrumb>
        <el-row>
            <slot></slot>
        </el-row>
    </el-container>
</template>

<script setup>
import { ref,onMounted, computed } from 'vue'
import { changeCurLabel } from '@/assets/js/common'
import { useStore } from 'vuex'

let store = useStore()

let curLabel = ref(computed(() => {
    return store.getters.getCurLabel
}))

onMounted(()=>{
    // if (store.getters.getIsCreate) {
    //     changeCurLabel('新建')
    // } else {
    //     changeCurLabel('编辑')
    // }
})

</script>

<style scope>
.el-breadcrumb {
    position: absolute;
    top: 75px;
    left: 120px;
}
</style>